<?php

if(file_exists('../functions.php')){
	include '../functions.php';
}

$size = disk_total_space("C:");

var_dump(Fsize($size));

$free = disk_free_space("C:");

var_dump(Fsize($free));

$file = "./sdf/sdfm/sdfsdfk/logo.png";

var_dump(basename($file));

var_dump(dirname($file));

$url = "../";

var_dump(is_dir($url));

// var_dump(mkdir('./abc/bb/a/c/d/c/f',0777,true));

// mkdir('./abc/b',0777,true);
// rmdir('./abc');
// 递归删除目录

// rename('./abc','./ccc');
// rename('./test.php','./bbb.php');
// 
copy('./bbb.php','./ccc/bbb2.php');

if(file_exists("./ccc/bbb2.php")){
	unlink("./ccc/bbb2.php");
}
// 断路

// true && true

file_exists("./ccc/bbb2.php") && unlink("./ccc/bbb2.php");

is_dir('./abc') || mkdir('./abc');

// true || false
// 扫描目录
// var_dump(glob("./*"));

$dir = "./ccc";

$arr = glob($dir.'/*');

var_dump($arr);

